home *** CD-ROM | disk | FTP | other *** search
/ Asobe! Fotoshock 5.0 ERO / Asobe! Fotoshock 5.0 ERO.iso / pc / main.dxr / ì‡ë†_7_startMovie.ls < prev    next >
Encoding:
Text File  |  1999-03-23  |  3.9 KB  |  140 lines

  1. global glistfile, gphotoloclist, gmyphotonum, gdefaultdata, gsaveddata
  2.  
  3. on startMovie
  4.   global glistfile
  5.   cursor(4)
  6.   clearGlobals()
  7.   deleteAll(the windowList)
  8.   set checktxt to "Check.txt"
  9.   case the runMode of
  10.     "Author":
  11.       set glistfile to the moviePath & checktxt
  12.     "projector":
  13.       set glistfile to the applicationPath & checktxt
  14.   end case
  15.   checkosd()
  16.   cursor(-1)
  17.   go(1)
  18.   debugstat()
  19. end
  20.  
  21. on checkosd
  22.   set myio_file to new(xtra("fileIO"))
  23.   openfile(myio_file, glistfile, 1)
  24.   set longtext to readfile(myio_file)
  25.   closefile(myio_file)
  26.   set gdefaultdata to longtext
  27.   set myio_file to new(xtra("fileIO"))
  28.   set spath to getosdirectory()
  29.   if the machineType = 256 then
  30.     set spath to spath & "¥"
  31.   end if
  32.   set spath to spath & "fshock.txt"
  33.   openfile(myio_file, spath, 1)
  34.   set amessage to error(myio_file, status(myio_file))
  35.   if amessage <> "OK" then
  36.     closefile(myio_file)
  37.     set myio_file to 0
  38.     set myio_file to new(xtra("fileIO"))
  39.     createfile(myio_file, spath)
  40.     setfinderinfo(myio_file, "TEXT NICS")
  41.     openfile(myio_file, spath, 2)
  42.     writestring(myio_file, gdefaultdata)
  43.     closefile(myio_file)
  44.     set myio_file to 0
  45.     set gsaveddata to gdefaultdata
  46.   else
  47.     set longtext to readfile(myio_file)
  48.     if char 1 of line 1 of longtext <> "[" then
  49.       alert(amessage)
  50.       alert("テェナスティテ古‡ツサテ液テ院テ韻テ嘉」テ‡邃「テ‡ツサテ‡ツ「テ‡テε‡ツシティIテウテセテ‡ツオテ‡窶ケテ‡テ")
  51.       closefile(myio_file)
  52.       set myio_file to 0
  53.       halt()
  54.     else
  55.       set gsaveddata to longtext
  56.       closefile(myio_file)
  57.       set myio_file to 0
  58.     end if
  59.   end if
  60.   set glistfile to spath
  61. end
  62.  
  63. on writedata
  64.   set num to value(gmyphotonum)
  65.   set atext to gsaveddata
  66.   set oldlist to value(line num of atext)
  67.   set newlist to gphotoloclist
  68.   if not (count(oldlist) = count(gphotoloclist)) then
  69.     alert("テェテョテ‡邃「テ ツキテ‡ツァ")
  70.   end if
  71.   case 1 of
  72.     (num < 1):
  73.       alert("テッツ、テォテーテ‡ツシテ‡ツエテ‡窶ケテ‡テセテ‡テ津③")
  74.       exit
  75.     (num = 1):
  76.       set gsaveddata to gphotoloclist & RETURN & line 2 to 60 of atext
  77.     (num < 60):
  78.       set gsaveddata to line 1 to num - 1 of atext & RETURN & gphotoloclist & RETURN & line num + 1 to 60 of atext
  79.     (num = 60):
  80.       set gsaveddata to line 1 to 59 of atext & RETURN & gphotoloclist & RETURN
  81.     otherwise:
  82.       alert("テッツ、テォテーテ‡ツシテ‡ツエテ‡窶ケテ‡テセテ‡テ津③")
  83.       exit
  84.   end case
  85.   set longtext to gsaveddata
  86.   set myio_file to new(xtra("fileIO"))
  87.   openfile(myio_file, glistfile, 2)
  88.   set amessage to error(myio_file, status(myio_file))
  89.   if amessage <> "OK" then
  90.     alert(amessage)
  91.     alert("テッツ、テォテーテ‡ツシテ‡ツエテ‡窶ケテ‡テセテ‡テ津‡ツシテ‡ツオテ‡テステ③" & "テ‡ツ湘‡ツテ‡テ津‡ツサテ‡ナステ‡ツ「テ③")
  92.   else
  93.     writestring(myio_file, longtext)
  94.     setfinderinfo(myio_file, "TEXT NICS")
  95.     set amessage to error(myio_file, status(myio_file))
  96.     if amessage <> "OK" then
  97.       alert(amessage)
  98.       alert("テッツ、テォテーテ‡ツシテ‡ツエテ‡窶ケテ‡テセテ‡テ津‡ツシテ‡ツオテ‡テステ③" & "テ‡ツ湘‡ツテ‡テ津‡ツサテ‡ナステ‡ツ「テ③")
  99.     else
  100.       alert("テッツ、テォテーテ‡ツオテ‡窶ケテ‡ツオテ‡テステ③")
  101.     end if
  102.   end if
  103.   closefile(myio_file)
  104.   set myio_file to 0
  105. end
  106.  
  107. on fukkicommand
  108.   set gphotoloclist to value(line value(gmyphotonum) of gsaveddata)
  109.   sort(gphotoloclist)
  110. end
  111.  
  112. on shokikacommand
  113.   set gphotoloclist to value(line value(gmyphotonum) of gdefaultdata)
  114.   sort(gphotoloclist)
  115. end
  116.  
  117. on defadatawrite
  118.   set longtext to gdefaultdata
  119.   set myio_file to new(xtra("fileIO"))
  120.   openfile(myio_file, glistfile, 2)
  121.   set amessage to error(myio_file, status(myio_file))
  122.   if amessage <> "OK" then
  123.     alert(amessage)
  124.     alert("テッツ、テォテーテ‡ツシテ‡ツエテ‡窶ケテ‡テセテ‡テ津‡ツシテ‡ツオテ‡テステ③" & "テ‡ツ湘‡ツテ‡テ津‡ツサテ‡ナステ‡ツ「テ③")
  125.   else
  126.     writestring(myio_file, longtext)
  127.     setfinderinfo(myio_file, "TEXT NICS")
  128.     set amessage to error(myio_file, status(myio_file))
  129.     if amessage <> "OK" then
  130.       alert(amessage)
  131.       alert("テッツ、テォテーテ‡ツシテ‡ツエテ‡窶ケテ‡テセテ‡テ津‡ツシテ‡ツオテ‡テステ③" & "テ‡ツ湘‡ツテ‡テ津‡ツサテ‡ナステ‡ツ「テ③")
  132.     else
  133.       alert("テッツ、テォテーテ‡ツオテ‡窶ケテ‡ツオテ‡テステ③")
  134.     end if
  135.   end if
  136.   closefile(myio_file)
  137.   set myio_file to 0
  138.   set gsaveddata to gdefaultdata
  139. end
  140.